package com.gwl.concurrent.threadpool;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

import com.gwl.concurrent.LiftOff;

public class SingleThreadPool {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		ExecutorService exec = Executors.newSingleThreadExecutor(); 
		for(int i=0; i<5; i++) { 
			exec.execute(new LiftOff()); 
		} 
		exec.shutdown(); 
	}

}
